fix: prevent parsing repository examples in code blocks#4
Merged
worlddriven[bot] merged 1 commit intoworlddriven:mainfrom Oct 25, 2025
Merged
Conversation
af81e0c to
5108fed
Compare
Contributor
🤖 Worlddriven Status📊 Live Status Dashboard🗓️ Merge Date: 2025-10-25 at 17:59:04 UTC (today) 🎯 Want to influence when this merges?Your review matters! As a contributor to this project, your voice helps determine the merge timeline. How to review:Your options:
💡 Pro tip: The more contributors who agree, the faster this gets merged! 📊 View detailed stats on the dashboard 📋 Recent Activity• 2025-10-25, 18:52:44 - Pull request merged by worlddriven ✅ This comment is automatically updated by worlddriven |
b0e7a34 to
a91fc1b
Compare
The parser was incorrectly treating repository definitions inside markdown code blocks as real repositories, causing the sync script to create repositories from documentation examples. Changes: - Add code block tracking to parse-repositories.js - Skip all content between triple backticks - Add comprehensive unit test suite with 13 tests - Add test workflow for CI that runs on all repos including forks - Restrict drift-detection and sync workflows to worlddriven org only - Add documentation and webapp repositories to REPOSITORIES.md This ensures forks can run CI successfully without access to org secrets, while the sync automation only runs in the main organization.
a91fc1b to
1bf8d0d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Summary
Fixes a critical parser bug where repository definitions inside markdown code blocks were being treated as real repositories. This caused the sync script to create unintended repositories from documentation examples.
Changes
Parser Fix:
Testing:
CI Improvements:
Repository Definitions:
documentationrepositorywebapprepositoryVerification
Parser now correctly returns only real repositories and ignores examples:
[ { "name": "documentation", "description": "Core documentation repository for worlddriven project", "topics": ["documentation", "worlddriven"] }, { "name": "webapp", "description": "Web application interface for worlddriven", "topics": ["webapp", "web", "frontend", "worlddriven"] } ]All 13 unit tests pass.